package org.jeecg.modules.carRegister.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.carRegister.entity.CarRegister;

import java.util.List;
import java.util.Map;

/**
 * @Description: 车辆登记
 * @Author: jeecg-boot
 * @Date:   2024-07-25
 * @Version: V1.0
 */
public interface CarRegisterMapper extends BaseMapper<CarRegister> {

    @Select("SELECT evn_type as 'name' ,COUNT(*) as 'value' FROM car_register GROUP BY evn_type")
    List<Map<String, String>> getCount();

}
